package com.young.design.pattern.factory.simple;

import com.young.design.pattern.factory.Shape;

/**
 * @ClassName : FactoryTest
 * @Author : hyy
 * @Date: 2020-03-16
 */
public class FactoryTest {
    public static void main(String[] args) {
        Shape triangle = ShapeFactory.getShape("triangle");
        Shape square = ShapeFactory.getShape("square");
        triangle.draw();
        square.draw();
    }
}
